﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JXT.PrimaryKey.Batman.Collections
{
    /// <summary>
    /// 分页显示集合
    /// </summary>
    /// <typeparam name="T">单项数据类型</typeparam>
    public interface IPagedCollection<T> : IEnumerable<T>, ICollection<T>
    {
        /// <summary>
        /// 页码数
        /// </summary>
        int PageCount { get; }

        /// <summary>
        /// 当前页
        /// </summary>
        int PageIndex { get; }

        /// <summary>
        /// 分页大小
        /// </summary>
        int PageSize { get; }

        /// <summary>
        /// 记录数
        /// </summary>
        int RecordCount { get; }
    }
}
